import request from "@/utils/request";

export function listGroup(queryParams) {
  return request({
    url: '/custom/group/list',
    method: 'get',
    params: queryParams
  })
}

export function getGroupInfo(id){
  return request({
    url: '/custom/group/' + id,
    method: 'get'
  })
}

export function addGroup(data) {
  return request({
    url: '/custom/group',
    method: 'post',
    data: data
  })
}

export function updateGroup(data) {
  return request({
    url: '/custom/group',
    method: 'put',
    data: data
  })
}

export function deleteGroup(id) {
  return request({
    url: '/custom/group/' + id,
    method: 'delete'
  })
}

export function updateStatus(data){
  return request({
    url: '/custom/group/updateStatus',
    method: 'put',
    data: data
  })
}
